using Microsoft.EntityFrameworkCore;

using System;

using Tool;

namespace Abc.Core.Entities
{
    [Comment("通知")]
    public class Notice : CreateEntity, IExtension
    {
        /// <summary>
        /// 通知类型代码
        /// </summary>
        [Comment("通知类型代码")]
        public string TypeCode { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [Comment("标题")]
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [Comment("内容")]
        public string Content { get; set; }

        /// <summary>
        /// 是否读取
        /// </summary>
        [Comment("是否读取")]
        public bool IsRead { get; set; }

        /// <summary>
        /// 读取状态
        /// </summary>
        [Comment("读取状态")]
        public DateTimeOffset ReadTime { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [Comment("用户ID")]
        public int UserId { get; set; }

        /// <summary>
        /// 扩展json数据字段
        /// <c><Dictionary<string,string></c>
        /// </summary>
        [Comment("扩展json数据字段")]
        public string ExtensionData { get; set; }
    }
}